﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head><link rel="stylesheet" href="${ctx}/common/common.css">
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/style/admin.css" media="all">
    <script src="${ctx}/common/plugins/layuiadmin/layui/layui.js"></script>
    
</head>
<body>
<div  id="productClassifyTree"></div>
</body>
<script>
    layui.use("tree",function(){
        var $ = layui.$;
        layui.tree({
            elem: '#productClassifyTree',
            click:function(obj){
            	if($("#classifyId", parent.document).val() != obj.id){
            		$('#personCla', parent.document).val(obj.name);
                    $('#t_por_cla', parent.document).val(obj.id);
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
            	}
            },
            nodes:${json}
        });
    })
</script>
</html>



